Optimal. Leaf size=24 \[ \frac{a \sin (e+f x)}{f}+\frac{b \tanh ^{-1}(\sin (e+f x))}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0275183, antiderivative size = 24, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {4045, 3770} \[ \frac{a \sin (e+f x)}{f}+\frac{b \tanh ^{-1}(\sin (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4045
Rule 3770
Rubi steps
\begin{align*} \int \cos (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx &=\frac{a \sin (e+f x)}{f}+b \int \sec (e+f x) \, dx\\ &=\frac{b \tanh ^{-1}(\sin (e+f x))}{f}+\frac{a \sin (e+f x)}{f}\\ \end{align*}
Mathematica [A] time = 0.0172255, size = 35, normalized size = 1.46 \[ \frac{a \sin (e) \cos (f x)}{f}+\frac{a \cos (e) \sin (f x)}{f}+\frac{b \tanh ^{-1}(\sin (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 32, normalized size = 1.3 \begin{align*}{\frac{\sin \left ( fx+e \right ) a}{f}}+{\frac{b\ln \left ( \sec \left ( fx+e \right ) +\tan \left ( fx+e \right ) \right ) }{f}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.986977, size = 51, normalized size = 2.12 \begin{align*} \frac{b{\left (\log \left (\sin \left (f x + e\right ) + 1\right ) - \log \left (\sin \left (f x + e\right ) - 1\right )\right )} + 2 \, a \sin \left (f x + e\right )}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.50083, size = 107, normalized size = 4.46 \begin{align*} \frac{b \log \left (\sin \left (f x + e\right ) + 1\right ) - b \log \left (-\sin \left (f x + e\right ) + 1\right ) + 2 \, a \sin \left (f x + e\right )}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \sec ^{2}{\left (e + f x \right )}\right ) \cos{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28577, size = 58, normalized size = 2.42 \begin{align*} \frac{b \log \left (\sin \left (f x + e\right ) + 1\right ) - b \log \left (-\sin \left (f x + e\right ) + 1\right ) + 2 \, a \sin \left (f x + e\right )}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]